package com.example.springboot.Exception;

import lombok.Getter;

/**
 * 雒鑫
 * Java Web
 */
@Getter
public class ServiceException extends RuntimeException{
    private final String code;



    public  ServiceException(String msg){
         super(msg);
         this.code="500";
     }
    public  ServiceException(String code,String msg){
        super(msg);
        this.code=code;
    }
}
